package org.sag.mallbf.type;

public enum Endian {
    BIG_ENDIAN(0),
    LITTLE_ENDIAN(1);

    private int value;

    Endian(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public static Endian get(int value) {
        for (Endian e : values()) {
            if (e.getValue() == value) {
                return e;
            }
        }
        return null;
    }
}
